package com.zjgsu.demo.nodeEntity;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;

import java.util.List;

@NodeEntity(label="Law")
public class Law {
    @GraphId
    private Long id;
    private String lawName;
    private String lawContent;

    @Relationship(type = "lawDev")
    @JsonProperty("lawDev")
    private List<Dev> lawDev;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLawName() {
        return lawName;
    }

    public void setLawName(String lawName) {
        this.lawName = lawName;
    }

    public String getLawContent() {
        return lawContent;
    }

    public void setLawContent(String lawContent) {
        this.lawContent = lawContent;
    }

    public List<Dev> getLawDev() {
        return lawDev;
    }

    public void setLawDev(List<Dev> lawDev) {
        this.lawDev = lawDev;
    }
}
